import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import toast from './components/common/toast'
import fastClick from 'fastclick'
import vueLazyLoad from 'vue-lazyload'

Vue.config.productionTip = false

//安装消息提示插件
Vue.use(toast)

//解决移动端300ms延迟
fastClick.attach(document.body)

//使用图片懒加载插件
Vue.use(vueLazyLoad, {
  loading: require('./assets/img/common/top.png')
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
